const HtmlWebpackPlugin = require("html-webpack-plugin");
const path = require("path");
// 代码混淆插件
module.exports = {
    output: {
        filename: "index.min.js",
        path: path.resolve(__dirname, "./dist"),
        library: {
            type: 'umd',
            name: 'MlampCaptchaWebSdk',
        }
    },
    plugins: [
        new HtmlWebpackPlugin({
            filename: 'index.html',
            template: './public/index-prod.html'
        })
    ]

}
